FROM registry.cn-shanghai.aliyuncs.com/haifengat/nginx:stable-alpine3.19-slim
# FROM nginx:alpine3.18-slim

COPY ./dist /usr/share/nginx/html/
# 覆盖掉原有同名文件
COPY ./nginx.conf /etc/nginx/conf.d/default.conf

RUN chmod -R 755 /usr/share/nginx/html

EXPOSE 80

CMD ["nginx", "-g", "daemon off;"]
